package com.whirl.org.entity;

import com.whirl.basic.entity.BaseEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;


/**
 * @author xiaowei
 * @date 2022/6/12 19:21
 */
@Data
public class Department extends BaseEntity {
    /*主键 继承BaseEntity */
    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    /*暂时不用*/
    private String dirPath;
    /*部门状态 0 正常 ，-1 停用*/
    private int state;

    private String manager_id;
    private String parent_id;

    /*部门经理 和员工关联*/
    private Employee manager;
    //上级部门
    private Department parent;

    // 下级部门列表
    List<Department> children = new ArrayList<>();
}
